Skip to content

Conversation

@Rassyan
Copy link
Contributor

@Rassyan Rassyan commented Jun 10, 2025

In order for plugins to extend Lucene's KnnVectorsFormat, we need to reload
it along with other Lucene SPIs when the plugin classloader is created.

This commit adds the call to KnnVectorsFormat.reloadKnnVectorsFormat(loader)
in reloadLuceneSPI method, allowing full extension of Lucene's vector functionality through plugins.

@Rassyan Rassyan requested a review from a team as a code owner June 10, 2025 13:00
@elasticsearchmachine elasticsearchmachine added needs:triage Requires assignment of a team area label v9.1.0 external-contributor Pull request authored by a developer outside the Elasticsearch team labels Jun 10, 2025
@PeteGillinElastic PeteGillinElastic added :StorageEngine/Codec and removed needs:triage Requires assignment of a team area label labels Jul 11, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-storage-engine (Team:StorageEngine)

@kkrik-es kkrik-es added :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch and removed Team:StorageEngine :StorageEngine/Codec labels Jul 14, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-relevance (Team:Search Relevance)

@kkrik-es
Copy link
Contributor

This seems more related to vector search. @elastic/search-relevance folks, feel free to send it back to me otherwise.

@tteofili tteofili self-requested a review July 14, 2025 12:07
Copy link
Contributor

@ChrisHegarty ChrisHegarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@tteofili tteofili left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good to me, thx @Rassyan !

@ChrisHegarty ChrisHegarty self-assigned this Jul 14, 2025
@ChrisHegarty
Copy link
Contributor

buildkite test this

@ChrisHegarty ChrisHegarty changed the title Reload KnnVectorsFormat in Lucene SPI registry​ Reload KnnVectorsFormat in Lucene SPI registry​ when a Plugin is loaded Jul 15, 2025
@ChrisHegarty ChrisHegarty merged commit 70176c8 into elastic:main Jul 15, 2025
33 of 35 checks passed
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
In order for plugins to extend Lucene's KnnVectorsFormat, we need to reload
it along with other Lucene SPIs when the plugin classloader is created.

This commit adds the call to KnnVectorsFormat.reloadKnnVectorsFormat(loader)
in reloadLuceneSPI method, allowing full extension of Lucene's vector functionality through plugins.
mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jul 17, 2025
In order for plugins to extend Lucene's KnnVectorsFormat, we need to reload
it along with other Lucene SPIs when the plugin classloader is created.

This commit adds the call to KnnVectorsFormat.reloadKnnVectorsFormat(loader)
in reloadLuceneSPI method, allowing full extension of Lucene's vector functionality through plugins.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team :Search Relevance/Vectors Vector search Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants